package com.itheima.reggie.service;

import com.itheima.reggie.domain.Employee;

import java.util.List;

public interface EmployeeService {
    /**
     * 员工登录验证
     * @param username
     * @param password
     * @return
     */
    Employee login(String username, String password);
    /**
     * 查询所有员工
     * @return
     */
    List<Employee> findAll(String name);

    /**
     * 添加员工
     * @param employee
     */
    void save(Employee employee);

    /**
     * 更新员工回显数据
     * @param id
     * @return
     */
    Employee findById(Long id);

    /**
     * 修改员工信息
     * @param employee
     */
    void update(Employee employee);

}
